package com.wish233.wiliwilivideo.service;

import com.wish233.wiliwilivideo.domain.dto.comment.CreateCommentRequest;
import com.wish233.wiliwilivideo.domain.dto.comment.UpdateCommentRequest;
import com.wish233.wiliwilivideo.domain.po.Comment;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wish233.wiliwilivideo.domain.vo.CommentVO;

import java.util.List;

/**
* @author WHH
* @description 针对表【comment(评论表)】的数据库操作Service
* @createDate 2025-03-24 16:31:06
*/
public interface CommentService extends IService<Comment> {

    CommentVO getCommentById(Long id);

    Long createComment(CreateCommentRequest createCommentRequest);

    boolean updateComment(UpdateCommentRequest updateCommentRequest);

    Boolean deleteComment(Long id);

    List<CommentVO> showVideoRootComment(Long id, int current, int pageSize);

    List<CommentVO> showChildCommentById(Long id, int current, int pageSize);
}
